from setuptools import find_packages, setup

package_name = 'get_network_ip'

setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        # 安装 YAML 配置文件
        ('share/' + package_name + '/config', [
            package_name + '/config/devices.yaml',
        ]),
        # ⬇️ 把 launch 文件安装进去
        ('share/' + package_name + '/launch', ['launch/network_status.launch.py']),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='root',
    maintainer_email='1204001571@qq.com',
    description='TODO: Package description',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'my_network_ip_node = get_network_ip.my_network_ip_node:main',
            'ping_devices_node = get_network_ip.ping_devices_node:main',
            'combine_network_node = get_network_ip.combine_network_node:main',
        ],
    },
)
